package com.example.demo.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.example.demo.domain.SysAgentInfoExample;
import com.example.demo.domain.SysAgentInfo;
import com.example.demo.mapper.SysAgentInfoMapper;
import com.example.demo.service.SysAgentInfoService;
@Service
public class SysAgentInfoServiceImpl implements SysAgentInfoService{

    @Resource
    private SysAgentInfoMapper sysAgentInfoMapper;

    @Override
    public long countByExample(SysAgentInfoExample example) {
        return sysAgentInfoMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SysAgentInfoExample example) {
        return sysAgentInfoMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long userId) {
        return sysAgentInfoMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(SysAgentInfo record) {
        return sysAgentInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(SysAgentInfo record) {
        return sysAgentInfoMapper.insertSelective(record);
    }

    @Override
    public List<SysAgentInfo> selectByExample(SysAgentInfoExample example) {
        return sysAgentInfoMapper.selectByExample(example);
    }

    @Override
    public SysAgentInfo selectByPrimaryKey(Long userId) {
        return sysAgentInfoMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByExampleSelective(SysAgentInfo record,SysAgentInfoExample example) {
        return sysAgentInfoMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SysAgentInfo record,SysAgentInfoExample example) {
        return sysAgentInfoMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(SysAgentInfo record) {
        return sysAgentInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysAgentInfo record) {
        return sysAgentInfoMapper.updateByPrimaryKey(record);
    }

}
